<template>
  <div class="box">
    <h1>three组件</h1>
    {{ user }}
  </div>
</template>
  
  <script>
  import {inject} from "vue"
export default {
    setup(){
        let user = inject("user");
        return {
            user
        }
    }
};
</script>
  
  <style>
</style>